package flow.listener;

import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;
import org.springframework.stereotype.Component;

import java.util.Arrays;

@Component
public class BeforeCountersignListener implements JavaDelegate{

    @Override
    public void execute(DelegateExecution delegateExecution) {
        delegateExecution.setVariable("assigneeList", Arrays.asList("harper", "root", "admin", "user"));
    }
}
